﻿#include "b_widget.h"
#include "ui_b_widget.h"

B_Widget::B_Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::B_Widget)
{
    ui->setupUi(this);

    //B界面跳转到主界面
    connect(ui->btn_goto_widget, &QPushButton::clicked, this, &B_Widget::goto_widget);

}

B_Widget::~B_Widget()
{
    delete ui;
}


void B_Widget::on_pushButton_clicked()
{
    //发送B到A的信号
    emit B_gotoA_widget();
}
